﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;


namespace IbnBazSetupHelper
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        protected DispatcherTimer disp = null;

        public MainWindow()
        {
            InitializeComponent();
            CustomInitComponent();
            


        }

        protected void CustomInitComponent()
        {
            disp = new DispatcherTimer();
            disp.Interval = new TimeSpan(0,0,0,0,500);
            disp.Tick += new EventHandler(disp_Tick);
            pbProgress.Minimum = 0;
            pbProgress.Maximum = 100;
            disp.Start();
        }

        protected void disp_Tick(object sender, EventArgs e)
        {
            pbProgress.Value = (pbProgress.Value + 10) % 100;
        }
    }
}
